restore

suspend fun restore(key: String): Boolean

Restore a single backup by its name and restarts the current running PocketBase process. This action will return an error if the backup to delete is still being generated or part of a restore operation.

Parameters

key

the key of the backup you wish to restore to